package com.gzl.demo.scheduling;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author wangqiang
 */
@Component
public class EdgeLogCollectScheduling {



    private static final Log logger = LogFactory.getLog(EdgeLogCollectScheduling.class);



    /**
     * 定时任务：
     */
    //@Scheduled(cron = "0/5 * * * * ?")
    public void collectEdgeLogs() throws ParseException {

        List<String> list =new ArrayList<>();
        list.add("111");
        List<String> stringList =new ArrayList<>();
        stringList.add("33");
        stringList.add("44");
        for (String s : list) {
            for (String s1 : stringList) {
                if (s1.equals("33")){
                    break;
                }
            }
        }


        logger.info("采集边日志任务执行完毕");
    }


}
